package com.lyy.consolidate;


/**
 * @Author:  GZQ
 * @date:  2024/12/22 15:23
 * @description: 巩固练习8
 */

public class HomeWork08 {

    public static void main(String[] args) {
        // 测试
        Doctor doctor1 = new Doctor("jack", 35, "医生", '男', 10000);
        Doctor doctor2 = new Doctor("jack", 30, "医生", '男', 10000);

        System.out.println(doctor1.equals(doctor2)); // T
    }
}
